﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.Application
{
    public class PolicyInput
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 发布部门
        /// </summary>
        public string PostDepart { get; set; }


        /// <summary>
        /// 简介
        /// </summary>
        public string Summay { get; set; }


        /// <summary>
        /// 内容
        /// </summary>
        public string Contents { get; set; }


        /// <summary>
        /// 数据状态
        /// </summary>
        public int Statu { get; set; } = 0;

    }


    public class PolicyAddInput: PolicyInput
    {

    }


    public class PolicyEditInput : PolicyInput
    {
        public long Id { get; set; }
    }


    public class PolicyItem
    {
        public long Id { get; set; }


        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 发布部门
        /// </summary>
        public string PostDepart { get; set; }


        /// <summary>
        /// 简介
        /// </summary>
        public string Summay { get; set; }
         
         
        /// <summary>
        /// 数据状态
        /// </summary>
        public int Statu { get; set; } = 0;

    }


    public class PolicyPageInput
    {
        /// <summary>
        /// 页码
        /// </summary>
        [Required(ErrorMessage = "页码不能为空")]
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        [Required(ErrorMessage = "页容量不能为空"), Range(5, 30, ErrorMessage = ("页码只能在 5 到 30 之间"))]
        public int PageSize { get; set; } = 20;

        /// <summary>
        /// 关键字
        /// </summary>
        [MaxLength(20)]
        public string Keyword { get; set; }
         
        /// <summary>
        /// 数据状态
        /// </summary>
        public int Statu { get; set; }


        



        public bool IsDeleted { get; set; }

    }


    public class PolicyRangeInput
    {
        public long[] Ids { get; set; }

    }

    /// <summary>
    /// 批量删除
    /// </summary>
    public class PolicyDeleteRangeInput : PolicyRangeInput
    {

    }


}
